<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/material/componentLookUpForBOM" onsubmit="return  dwzSearch(this, 'dialog');">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label id="materialCode" ><@label key="materialCode.C,colon">物料编号：</@label></label> <input type="text" name="materialCode" value="${condition.materialCode!''}" /></li>
                <li><label id="materialText" ><@label key="materialText.C,colon">物料描述：</@label></label> <input type="text" name="materialText" value="${condition.materialText!''}" /></li>
            
            <li class="query">
                <div class="buttonActive" style="float:left;">
                    <div class="buttonContent">
                        <button type="submit"><@label key="query.B">查询</@label></button>
                    </div>
                </div>
            </li>
            </ul>
        </div>
    </div>
</form>

<table class="table border" width="100%" layoutH="138" >
    <thead>
        <tr>
            <th width="30"><input type="checkbox" class="checkboxCtrl" group="materialGrpId" /></th>
            <th width="100"><@label key="materialCode.C">物料编号</@label></th>
            <th width="100"><@label key="materialText.C">物料描述</@label></th>
        </tr>
    </thead>
    <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as material>
        <tr>
            <td><input type="checkbox" name="materialGrpId" value="{materialCode:'<@json_escape>${material.materialCode!''}</@json_escape>', materialText:'<@json_escape>${material.materialText!''}</@json_escape>' }" />
            <td>${material.materialCode!''}</td>
            <td>${material.materialText!''}</td>
        </tr>
        </#list> <#else>
        <tr target="material_code">
            <td colspan="5" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</font>
            </td>
        </tr>
        </#if> <#else>
        <tr target="material_code">
            <td colspan="5" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</font>
            </td>
        </tr>
        </#if>
    </tbody>
</table>
    <#include "/common/dialogPanelBar.html">
<div class="formBar">
        <ul>
            <li><div class="buttonActive"><div class="buttonContent"><button type="button" multLookup="materialGrpId" warn="请选择物料组件">确定</button></div></div></li>
            <li>
            <div class="buttonActiveGrey" >
                        <div class="buttonContent" >
                            <button class="close" type="button"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div>
            </li>
        
        </ul>
</div>